<?php
	$a = REPLACE_Injection($_GET["a"]);
	if($a == 1){
		validarResultadoPartido(REPLACE_Injection($_GET["id"]));
		?>		
		<div id="content">
		<div id="ok">Match validated!</div>
		</div>
		<?php
	}else{
		$id = REPLACE_Injection($_GET["a"]);
		$query = new mysqlQuery("tournament", "", "partido_torneo", "*", "`id`='".$id."'", "", "");
		$query->execute();
		if($query->getCount() > 0){
			$row = $query->next();
			if($row["estado"] != '0'){
				
			}else{
				?>
				<div id="content">
				<div id="error">The match you are trying to see is not active yet!</div>
				</div>
				<?php
			}
		}else{
			?>
			<div id="content">
			<div id="error">Any match found with that id</div>
			</div>
			<?php			
		}
	}
?>